// 1-8 实例-8 交换两个变量
/**
 *
 */
#include <iostream>
int main(void)
{
  int a = 3, b = 4;
  std::cout << "a: " << a << " b: " << b << std::endl;

  int t = a;
  a = b;
  b = t;

  // a = a + b;
  // b = a - b;
  // a = a - b;

  // a = a ^ b;
  // b = a ^ b;
  // a = a ^ b;

  std::cout << "a: " << a << " b: " << b << std::endl;

  printf("---------------end-----------------\n");
  return 0;
}